/*
day60
2019.10.27
*/

struct TreeNode {
	int val;
	struct TreeNode *left;
	struct TreeNode *right;
};

bool isEqual(struct TreeNode *p,struct TreeNode *q)
{
	if(!p && !q) return true;
	if(!p || !q) return false;
	return (p->val == q->val) && isEqual(p->left,q->left) && isEqual(p->right,q->right);
}

bool isSubtree(struct TreeNode* s, struct TreeNode* t){
	if(!s) return false;
	if( isEqual(s,t) ) return true;
	if( isSubtree(s->left,t) || isSubtree(s->right,t) ) return true;
	return false;
}


int main()
{
	return 0;
}
